home *** CD-ROM | disk | FTP | other *** search
- <HTML>
-
- <HEAD>
- <LINK REL="stylesheet" TYPE="text/css" HREF="%1css/default.css">
-
- <script language="Javascript">
- //LOCALIZATION STRINGS
- var _strNameMissing = "Please enter an event name.";
- var _strNameTooLong = "Please limit the name to 100 characters.";
-
- var _strFileNameMissing = "Please enter a filename.";
-
- var _strDescTooLong = "Please limit the description to 256 characters.";
- </script>
-
- <SCRIPT language=Javascript>
- function onSubmit()
- {
- // check for account name, description, and file name (for file events)
-
- // Name
- var strName = document.forms.event_prop.eventName.value;
- if (strName.length == 0)
- {
- alert(_strNameMissing);
- document.forms.event_prop.eventName.focus();
- return;
- }
- if (strName.length > 100)
- {
- alert(_strNameTooLong);
- document.forms.event_prop.eventName.focus();
- return;
- }
-
- // Filename
- if (document.forms.event_prop.fileName != null)
- {
- var strFileName = document.forms.event_prop.fileName.value;
- if (strFileName.length == 0)
- {
- alert(_strFileNameMissing);
- document.forms.event_prop.fileName.focus();
- return;
- }
- }
-
- // Description
- var strDesc = document.forms.event_prop.eventDesc.value;
- if (strDesc.length >= 256)
- {
- alert(_strDescTooLong);
- document.forms.event_prop.eventDesc.focus();
- return;
- }
-
- // Submit the properies
- document.event_prop.submit();
- }
-
- function onCancel()
- {
- document.forms[0].reset();
- }
-
- function onInit()
- {
- document.forms.event_prop.eventName.focus();
- }
-
-
-
- </SCRIPT>
-
- </HEAD>
-
- <BODY onLoad="onInit()" TOPMARGIN="0" LEFTMARGIN="5" MARGINHEIGHT="0" MARGINWIDTH="5">
- %2
- <FORM action="%3" method="post" name="event_prop" target="target_frame">
-
- <input type="hidden" name="eventType" value="%4">
-
- <table>
- <tr>
- <td class="list">Type:</td>
- <td class="list">%5</td>
- </tr>
-
- <tr><td> </td></tr>
-
- <tr>
- <td class="list">Event Name:</td>
- <td class="list"><input tabindex=1 name="eventName" value="%6" size=40></td>
- </tr>
-
- <tr>
- <td class="list">Description:</td>
- <td class="list"><textarea wrap="virtual" tabindex=2 name="eventDesc" rows="7" cols="40">%7</textarea></td>
- </tr>
-
- %8
-
- </table>
-
- <BR>
-
-
- <table align=center CELLPADDING="0" CELLSPACING="5" border=0 width=20%>
- <tr>
- <td><table cellpadding=0 border=0>
- <tr>
- <td class="clsButton" align=middle nowrap>
- <div class="clsButton"><a href="javascript:onSubmit()" tabindex=11>Update</a></div>
- </td>
-
- <td class="clsButton" align=middle nowrap>
- <div class="clsButton"><a href="javascript: onCancel()" tabindex=12>Reset</a></div>
- </td>
- </tr>
- </table></td>
- </tr>
- </table>
-
- </form>
-
- </BODY>
- </HTML>
-